import request from '@/axios';

export const getUsualList = (current, size) => request({
  url: '/zzy-log/usual/list',
  method: 'get',
  params: {
    current,
    size,
  },
});

export const getApiList = (current, size) => request({
  url: '/zzy-log/api/list',
  method: 'get',
  params: {
    current,
    size,
  },
});

export const getErrorList = (current, size) => request({
  url: '/zzy-log/error/list',
  method: 'get',
  params: {
    current,
    size,
  },
});

export const getUsualLogs = id => request({
  url: '/zzy-log/usual/detail',
  method: 'get',
  params: {
    id,
  },
});
export const getApiLogs = id => request({
  url: '/zzy-log/api/detail',
  method: 'get',
  params: {
    id,
  },
});
export const getErrorLogs = id => request({
  url: '/zzy-log/error/detail',
  method: 'get',
  params: {
    id,
  },
});
